package SV_LOG_FORGING;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class Example {
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String amount = req.getParameter("amount");
        try {
            int iAmount = Integer.parseInt(amount);
            processAmount(iAmount);
        } catch (NumberFormatException e) {
            req.getSession().getServletContext().log("Incorrect int value specified for the 'amount' " + amount);
        }
    }

    private void processAmount(int iAmount) {

    }

}
